package com.jzo2o.foundations.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 热门状态枚举类
 * @author JIAN
 */
@AllArgsConstructor
@Getter
public enum HotStatusEnum {
    ON_HOT(1, "热门状态"),
    OFF_HOT(0, "非热门状态");
    private final int status;
    private final String description;

    public boolean equals(Integer status) {
        return this.status == status;
    }

    public boolean equals(HotStatusEnum hotStatusEnum) {
        return hotStatusEnum != null && hotStatusEnum.status == this.getStatus();
    }
}